import java.util.ArrayList;
import java.util.Collections;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 徐海涛
 * Date: 2022-01-12
 * Time: 13:03
 */
class Student {

    private String name;
    private String classes;
    private double score;

    public Student(String name, String classes, double score) {
        this.name = name;
        this.classes = classes;
        this.score = score;
    }

    public Student(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    public String getClasses() {
        return classes;
    }

    public void setClasses(String classes) {
        this.classes = classes;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", classes='" + classes + '\'' +
                ", score=" + score +
                '}';
    }
}
public class TestDemo {
    public static void main4(String[] args) {

    }





    public static void main(String[] args) {
        String str1 = "welcome to bit";
        String str2 = "come";
        ArrayList<Character> list = new ArrayList<>();//里面放字符
        for (int i = 0; i < str1.length(); i++) {
            char ch = str1.charAt(i);//得到每个下标字符
            if(!str2.contains(ch + "")) {
                list.add(ch);
            }
        }
        for (char ch : list) {
            System.out.print(ch);
        }
    }




    public static void main2(String[] args) {
        ArrayList<Integer> integers = new ArrayList<>();
        integers.add(11);
        integers.add(2);
        integers.add(13);
        Collections.sort(integers);
        System.out.println(integers);
    }


    public static void main1(String[] args) {
        ArrayList<Student> students = new ArrayList<>();
        students.add(new Student("bit","102-1",98.9));
        students.add(new Student("gaobo","102-2",18.9));
        students.add(new Student("zhiqiang","102-1",88.6));
        System.out.println(students);

    }

}
